import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useAppStore = defineStore('app', () => {
  const theme = ref('dark')
  function set_theme(data: string) {
    theme.value = data
  }

  return {
    theme,
    set_theme,
  }
})
